<?php
/**
 * TranslatedPages extension
 * 
 * @file
 * @ingroup Extensions
 *
 * @author Omar Vega Ramos <ovruni@gnu.org.pe>
 * @license http://www.gnu.org/licenses/agpl.html AGPL v3 or later
 * @version 0.1.0
 */

if ( !defined( 'MEDIAWIKI' ) ) {
    exit;
}

/* Configuration */

// Choose language source of articles, ie 'en', 'es', etc.:
$wgTranslatedPagesSourceLanguage = 'en';

// Choose location of the languages bar, ie 'sidebar', 'topbar':
$wgTranslatedPagesLanguagesBar = 'sidebar';

// Choose colors of the states:
$wgTranslatedPagesColorsStates = array('error' => '#FF0000', 'outdated' => '#FFFF00', 'updated' => '#008000', 'missing' => '#808080');

/* Setup */

$wgExtensionCredits['other'][] = array(
    'path' => __FILE__,
    'name' => 'TranslatedPages',
    'author' => array( 'Omar Vega Ramos' ),
    'url' => 'http://www.mediawiki.org/wiki/Extension:TranslatedPages',
    'version' => '0.1.0',
    'descriptionmsg' => 'translatedpages-desc',
    );

$wgAutoloadClasses['TranslatedPagesHooks'] = dirname( __FILE__ ) . '/TranslatedPages.hooks.php';
$wgExtensionMessagesFiles['TranslatedPages'] = dirname( __FILE__ ) . '/TranslatedPages.i18n.php';
#$wgExtensionMessagesFiles['TranslatedPagesAlias'] = dirname( __FILE__ ) . '/TranslatedPages.alias.php';
$wgExtensionMessagesFiles['TranslatedPagesMagic'] = dirname( __FILE__ ) . '/TranslatedPages.i18n.magic.php';
#$wgSpecialPages['TranslatedPages'] = 'MyExtensionHooks';

$wgHooks['ParserFirstCallInit'][] = 'TranslatedPagesHooks::defineHooks';